import java.util.*;
import static java.lang.System.*;

/*
 * My very first java program
 */

public class VeryFirstJavaProg {
	int c;
	boolean fl;

	public int say_hello(int times) {
		while (times-- > 0) {
			out.println("Hello!");
			out.print("It's ");
			out.print(new Date());
			out.print(" today.\nHave fun.\n");
		}

		return 42;
	}

	static boolean condition() {
		boolean res = Math.random() < 0.99;
		out.print(res + ", ");
		return res;
	}

	public static void main(String[] args) {
		VeryFirstJavaProg hu = new VeryFirstJavaProg();
		hu.say_hello(2);

		/*Random rand = new Random();
		int i = rand.nextInt();
		out.println("i=" + i);

		while (condition()) {
			out.println("Inside 'while'");
		}
		out.println("Exited 'while'");

		for (char c = 0; c <= 0xff; c++) {
			if (Character.isAlphabetic(c) || Character.isDigit(c)
					|| Character.isWhitespace(c))
				out.println("c: 0x" + Integer.toHexString((int) c) +
						" (" + Integer.toString((int) c) + "), character: " + c);
		}

		out.println(args[0].length());*/
	}
}
